package com.dic.mall.product.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

import javax.validation.constraints.NotNull;


/**
 * 品牌
 * 
 * @author liliang
 * @email LeeLiang2016@163.com
 * @date 2020-07-06 17:20:25
 */
@Data
@TableName("pms_brand")
public class BrandEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 品牌id
	 */
	@TableId
//	@Null(groups = {AddGroup.class})
//	@NotNull(groups={UpdateGroup.class})
	private Long brandId;
	/**
	 * 品牌名
	 */
	@NotNull(message = "品牌名称不能为空")
	private String name;
	/**
	 * 品牌logo地址
	 */
//	@URL(message = "必须是正确的url地址")
	private String logo;
	/**
	 * 介绍
	 */
//	@NotNull(groups = {AddGroup.class,UpdateGroup.class})
	private String descript;
	/**
	 * 显示状态[0-不显示；1-显示]
	 */
//	@StatusList(vals = {0,1},groups = {AddGroup.class})
	private Integer showStatus;
	/**
	 * 检索首字母
	 */
//	@Pattern(regexp = "^[a-zA-z]&",message = "检索首字母必须是a-zA-Z")
	private String firstLetter;
	/**
	 * 排序
	 */
//	@Min(0)
	private Integer sort;

}
